<template>
    <div class="item">
        <img :src="data.state ? data.srcHo : data.src">
        <p>{{ data.text }}</p>
    </div>
</template>

<script>
export default {
    name: "tablist",
    props: {
        data: {
            type: Object,
            required: true,
        }
    }
}
</script>

<style>
  .item {
      width: 60px;
      height: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-content: center;
  }
  .item img {
    display: block;
    margin: 0 15px;
    width: 30px;
    height: 30px;
  }
  .item p {
    margin: 0;
  }
</style>